<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Nav</title>
    <style type="text/css">


        .select {
            display: inline-flex;
            flex-direction: column;
        }

        .select > button {
            background-color: cadetblue;
            font-size: 25px;
            line-height: 25px;
            padding: 10px 50px;
        }

        .items {
            display: none;
            background-color: whitesmoke;
        }

        .select:hover > .items {
            display: inline-flex;
            flex-direction: column;
        }

        .items > p {
            margin: 0;
            padding: 10px 10px;
            font-size: 20px;
        }
        .items > p:hover {
            background-color: gainsboro;
        }



    </style>
</head>
<body>
<div class="select">

    <h2><a @click="$router.back()">返回</a></h2>

    <button>产品</button>
    <div class="items">
        <p>手机</p>
        <p>汽车</p>
        <p>洗衣机</p>
        <p>电视机</p>
    </div>
</div>
</body>
</html>
